package com.java1412.order.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author java1412
 * @since 2024-04-08 17:48:03
 */
@FeignClient(value = "mall-goods")// feign的客户端,value：注册中心中的应用名称
public interface GoodsService {
    @RequestMapping("/api/v1/goods/findByGoodsId")
    public Object findByGoodsId(@RequestParam("goodsId") int goodsId);

    @RequestMapping(value = "api/v1/goods/findClusterName")
    public String findClusterName();
}
